<template>
  <div class="cover">
    <div class="title1">黑马<span class="blue">头条</span></div>
    <div class="title2">技术热点的追求者</div>
    <div class="exp" @click="goToIndex">立即体验</div>
  </div>
</template>

<script>
export default {
  name: 'cover',
  methods: {
    goToIndex () {
      this.$router.push('/index')
    }
  }
}
</script>

<style lang="less" scoped>
.cover {
  height: 100%;
  background: url(~@/assets/h1.png) no-repeat 50% 30%;
  background-size: 400px;
  position: relative;
  .title1 {
    position: absolute;
    left: 50%;
    top: 78%;
    font-size: 20px;
    margin-left: -36px;
    font-weight: 400;
    letter-spacing: 2px;
    .blue {
      color: #3899fa;
    }
  }
  .title2 {
    position: absolute;
    left: 50%;
    top: 84%;
    font-size: 16px;
    margin-left: -65px;
    color: #6d6d6d;
    letter-spacing: 2px;
    font-weight: 300;
  }
  .exp {
    position: absolute;
    width: 200px;
    height: 30px;
    text-align: center;
    border: 1px solid #429ffa;
    border-radius: 15px;
    color: #429ffa;
    line-height: 30px;
    left: 50%;
    top: 88%;
    margin-left: -100px;
    font-size: 16px;
  }
}
</style>
